POV-Ray : Newsgroups : povray.general : arrays.inc - Rand_Array_Item() trouble : arrays.inc - Rand_Array_Item() trouble Server Time
1 Aug 2024 04:18:09 EDT (-0400)
  arrays.inc - Rand_Array_Item() trouble  
From: How Camp
Date: 12 Apr 2006 13:30:00
Message: <web.443d3793c13db847429e56f30@news.povray.org>
I'm sure this is something silly.  Test1 works fine, but the line just prior
to Test2 complains that I don't have a ';' at the end of my #declare
statement
(which I do).  What am I doing wrong?  Can anyone give a simple working
example of Rand_Array_Item() for me?


#include "arrays.inc"
#declare MyArray = array[5] {0, 1, 2, 3, 4};
#declare RS = seed(12345);
#debug concat("Test1: ", str(Rand_Array_Item(MyArray,RS),0,0), "\n")
#declare Test = Rand_Array_Item(MyArray,RS);
#debug concat("Test2: ", str(Test,0,0), "\n")


- How


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.